package com.dream.keigezhushou.Activity.acty.personal;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.dream.keigezhushou.Activity.activity.BaseActivity;
import com.dream.keigezhushou.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class AlterNickActivity extends BaseActivity implements View.OnClickListener{

    @BindView(R.id.tv_cancel)
    TextView tvCancel;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_save)
    TextView tvSave;
    @BindView(R.id.tv_user_nick)
    TextView tvUserNick;
    @BindView(R.id.iv_cancel)
    ImageView ivCancel;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_alter_nick);
        ButterKnife.bind(this);

        initData();
    }

    //初始化数据
    protected void initData(){

        tvCancel.setOnClickListener(this);
    }

    //点击事件的实现

    @Override
    public void onClick(View view) {

        switch (view.getId()){

            case R.id.tv_cancel:

                //返回
                finish();
                break;

            case R.id.tv_save:

                Toast.makeText(this,"已保存",Toast.LENGTH_SHORT).show();
                break;

            case R.id.iv_cancel:

                break;

            case R.id.tv_user_nick:
                break;
        }
    }
}
